mulIp = "224.0.211.211"
--mulIp = "192.168.50.118"
mulPort = 6000

wifi.eventmon.register(wifi.eventmon.STA_GOT_IP, function(T)
    print("get_ip")
    conn = net.createConnection(net.UDP, 0)
    conn:connect(mulPort,mulIp)
    net.multicastJoin(wifi.sta.getip(), "224.0.211.211")
    conn:send("111111111110000000", function() 
        print("sent")
    end)
end)

wifi.setmode(wifi.STATION)
wifi.sta.config('A701', 'a15880287827')
wifi.sta.autoconnect(1)